﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogViewer.aspx.cs" Inherits="SO.SharePoint.WebParts.Layouts.SO.LogViewer" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

    <div style="margin-left: 2px;">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 200px;">
                    Server:<br />
                    <asp:DropDownList ID="serverDropDown" runat="server" CssClass="ms-RadioText"></asp:DropDownList><br />
                    <asp:Button ID="selectServerButton" CssClass="ms-ButtonHeightWidth" runat="server" OnClick="selectServerButton_Click" Text="OK" />
                </td>
                <td style="width: auto;">
                    Files:<br />
                    <asp:DropDownList ID="filesDropDown" runat="server" CssClass="ms-RadioText"></asp:DropDownList><br />
                    <asp:Button ID="selectFileButton" CssClass="ms-ButtonHeightWidth" runat="server" OnClick="selectFileButton_Click" Text="OK" />
                </td>
            </tr>
        </table>

        <asp:Panel ID="filterPanel" runat="server" Visible="false">
            Filter<br />
            <asp:DropDownList ID="filterFieldDropDown" runat="server" CssClass="ms-RadioText" Width="150px"></asp:DropDownList>&nbsp;<asp:TextBox ID="filterValueText" runat="server" CssClass="ms-long" Width="250px"></asp:TextBox><br />
            <asp:Button ID="filterLogButton" runat="server" CssClass="ms-ButtonHeightWidth" OnClick="filterLogButton_OnClick" Text="Set filter" />&nbsp;<asp:Button ID="clearFilterButton" runat="server" CssClass="ms-ButtonHeightWidth" runat="server" OnClick="selectFileButton_Click" Enabled="false" Text="Clear filter" /><br />
            &nbsp;<br />
            <asp:Label ID="filterStatusLabel" runat="server"></asp:Label><br />
            &nbsp;<br />
        </asp:Panel>

        <asp:DataGrid ID="EventGrid" runat="server"></asp:DataGrid>

        <asp:Label ID="errorLabel" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
    </div>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
SO Log Viewer for SharePoint
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Log Viewer
</asp:Content>
